<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
<meta http-equiv="content-type" content=
"text/html; charset=utf-8" />
<title>lunar2ics - 生成农历的 icalendar</title>
<script type="text/javascript">

function updateLeapMonthWa() {
	var oLeapMonth = document.getElementById("id_leapMonth");
	var oLeapMonthWa = document.getElementById("id_leapMonthWa").parentNode.parentNode;
	if(oLeapMonth.checked) {
		oLeapMonthWa.style.display="";
	} else {
		oLeapMonthWa.style.display="none";
	}
}

function updateLastDayWa() {
	var oDay = document.getElementById("id_day");
	var oLastDayWa = document.getElementById("id_lastDayWa").parentNode.parentNode;
	if(oDay.value=="30") {
		oLastDayWa.style.display="";
	} else {
		oLastDayWa.style.display="none";
	}
}

window.onload = function() {
	updateLeapMonthWa();
	updateLastDayWa();	
	document.getElementById("id_leapMonth").onchange = updateLeapMonthWa;
	document.getElementById("id_day").onchange = updateLastDayWa;
};
</script>
</head>
<body>
<h1>生成农历的 icalendar (.ics)</h1>
<h2>表单</h2>
<form method="get" action="">
<table>
{{ form.as_table }}
</table>
<input type="submit" value="提交"/>
</form>
<h2>常用链接</h2>

<ul>
<li><a href="?month=1&amp;day=1&amp;beginYear=2008&amp;endYear=2050&amp;summary=%E6%98%A5%E8%8A%82">
春节</a></li>
<li>
<a href="?month=12&day=30&beginYear=2008&endYear=2050&summary=除夕&lastDayWa=-1">除夕</a>
</li>
<li><a href=
"?month=5&amp;day=5&amp;beginYear=2008&amp;endYear=2050&amp;summary=%E7%AB%AF%E5%8D%88">
端午</a></li>
<li><a href=
"?month=8&amp;day=15&amp;beginYear=2008&amp;endYear=2050&amp;summary=%E4%B8%AD%E7%A7%8B">
中秋</a></li>
<li><a href=
"?month=9&amp;day=9&amp;beginYear=2008&amp;endYear=2050&amp;summary=%E9%87%8D%E9%98%B3">
重阳</a></li>
</ul>
<h2>附注</h2>
<ul>
<li>这个项目最开始的名字是 IWillNeverForgetMyFather'sBirthday, 不过太长了，所以改成
lunar2ics</li>
<li>源代码位于<a href=
"http://code.google.com/p/appspot-lidaobing/">http://code.google.com/p/appspot-lidaobing/</a></li>
<li>算法采用<a href=
"http://code.google.com/p/python-lunardate/">python-lunardate</a></li>
</ul>
<center><small>lunar2ics {{version}}</small></center>
<center><small>Copyright (C) 2008 LI Daobing
&lt;lidaobing@gmail.com&gt;</small></center>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2282490-11");
pageTracker._trackPageview();
</script>
</body>
</html>
